import Layout from "@views/layout";

const userRouter = {
  path: "/user",
  name: "USER",
  component: Layout,
  redirect: { name: 'USER_LIST' },
  meta: {
    title: "用户",
    icon: "el-icon-s-custom",
  },
  children: [
    {
      path: "list",
      name: "USER_LIST",
      meta: {
        title: "用户列表",
        keepAlive: false,
        icon: "el-icon-s-custom",
      },
      component: () => import("@views/user/list/index.vue"),
    },

    {
      path: "edit",
      name: "USER_EDIT",
      hidden: false,
      meta: {
        title: "用户编辑",
      },
      component: () => import("@views/user/list/edit.vue"),

    },

    {
      path: "details",
      name: "USER_DETAILS",
      hidden: false,
      meta: {
        title: "用户详情",
      },
      component: () => import("@views/user/list/details.vue"),

    },
  ],

};

export default userRouter;
